<%--
  Created by IntelliJ IDEA.
  User: ime
  Date: 2025/5/13
  Time: 09:09
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>图书列表</title>
</head>
<body>
    <h1>图书列表</h1>
    <a href="add">添加图书</a>
    <table>
        <tr><th>ID</th><th>书名</th><th>作者</th><th>操作</th></tr>
        <c:forEach items="${books}" var="book">
            <tr>
                <td>${book.id}</td>
                <td>${book.bookName}</td>
                <td>${book.bookAuthor}</td>
                <td><a href="remove?id=${book.id}">删除</a></td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
